package com.myapp.service.impl.sys;

import com.myapp.model.dao.sys.AdminDao;
import com.myapp.model.entity.sys.Admin;
import com.myapp.service.sys.SysBo;

public class SysBoImpl implements SysBo {

	private AdminDao adminDao;
	
	public void setAdminDao(AdminDao adminDao) {
		this.adminDao = adminDao;
	}

	@Override
	public boolean login(String id, String passwd) {
		Admin admin = adminDao.login(id, passwd);
		return admin == null ? false : true ;
	}
}
